<template>
	<view>
		<view class="cu-form-split margin-lr padding-xms"></view>
		<view class="padding-lr padding-top flex flex-direction">
			<button class="cu-btn round lg text-white" :class="[btnDisabled ? 'block line-gray':'bg-gradual-pink-btn shadow-blur']" hover-class="none" :disabled="btnDisabled" @tap="btnSubmit"><slot></slot></button>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'user-button',
		props: {
			btnDisabled: {
				type: Boolean,
				default: false
			}
		},
		methods: {
			//按钮提交
			btnSubmit:function(){
				this.$emit("submitEvent")
			}
		}
	}
</script>
